= link_to "上拉菜单",'javascript:void(0);',:id=> "actionsheet",:class => 'weui_btn weui_btn_primary'


:javascript

  $(function(){

    $('#actionsheet').click(function(){
      jyd_actionsheet({
         'menu_list':[
         {'content':'上拉菜单1',callback:function(){console.log(1);}},
         {'content':'上拉菜单2',callback:function(){console.log(2);}},
         {'content':'上拉菜单3',callback:function(){console.log(3);}},
         {'content':'上拉菜单4',callback:function(){console.log(4);}},
         {'content':'上拉菜单5',callback:function(){console.log(5);}},
         ],
         'cancel_content':'菜单消失',
         'cancel_callback':function(){
           console.log("上拉菜单已消失！");
         }
        //menu_list 菜单列表{'content':内容,'callback': 回调函数}
        //cancel_content 取消按钮内容(可选)，默认为取消
        //cancel_callback 取消按钮回调(可选)，默认为取消
      });
    })
  })